const throttle = function(fn,delayed){
    let viled = true;
    return function(){
        let _this = this
            if(!viled){
               viled = false 
            }
            setTimeout(()=>{
                fn.call(_this);
                viled = true
            },delayed)
    }
}
export default throttle